import re
with open('D:\goprojects\图灵爬虫\ssr1 copy.html',"r",encoding="utf-8") as f:
    text=f.read()
    #print(text)
result=re.findall('"url":"(http.*?)"',text)
content=""
for i in result:
    if "e.baidu.com" in i or "t8.baidu.com" in i or "f=PNG" in i or "baozhang.baidu.com" in i or "?url=" in i or "tieba.baidu.com" in i:
         continue
    content=content+i+"\n\n"
with open("content2.txt",'w') as f:
        f.write(content)